package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.CreatedBy;

import java.io.Serializable;
import java.util.Date;

/**
 * test对象 t_test
 * 
 * @author ruoyi
 * @date 2020-09-17
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_test")
public class Test implements Serializable {

private static final long serialVersionUID=1L;


    /** id */
    @TableId(value = "test_id")
    private Long testId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtTime;

    /** 创建人 */
    @Excel(name = "创建人")
    @CreatedBy
    private String creator;
}
